package com.neusoft.service;

import com.neusoft.entity.RoleAuth;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "provider-banji")
public interface RoleAuthComsumerService {
    @PostMapping("/auth/queryAll")
    Object queryAll(@RequestParam("page") Integer page, @RequestParam("limit") Integer limit, @RequestBody RoleAuth roleAuth);

    @PostMapping("/auth/save")
    public Object save(@RequestBody RoleAuth roleAuth);

    @PostMapping("/auth/delete")
    public boolean delete(@RequestBody Integer[] ids);


}
